﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace UCNKompetenceBors.Model
{
    public class News
    {
        private int _newsId;
        private string _title;
        private string _text;
        private string _imageURL;
        private string _thumbnailURL;
        private LoginUser _user;
        private DateTime _createdDate;
        private string _localizedTitle;
        private string _localizedText;

        public int NewsId
        {
            get { return _newsId; }
        }

        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }

        public string ImageURL
        {
            get { return _imageURL; }
            set { _imageURL = value; }
        }

        public string ThumbnailURL
        {
            get { return _thumbnailURL; }
            set { _thumbnailURL = value; }
        }

        public LoginUser User
        {
            get { return _user; }
            set { _user = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createdDate; }
            set { _createdDate = value; }
        }

        public string LocalizedTitle
        {
            get { return _localizedTitle; }
            set { _localizedTitle = value; }
        }

        public string LocalizedText
        {
            get { return _localizedText; }
            set { _localizedText = value; }
        }

        public News(int newsId)
        {
            _newsId = newsId;
            _title = "";
            _text = "";
            _imageURL = "";
            _thumbnailURL = "";
            _user = null;
            _createdDate = DateTime.Now;
            _localizedTitle = "";
            _localizedText = "";
        }

        public News(int newsId, string title, string text, string imageURL, string thumbnailURL, LoginUser user, DateTime createdDate, string localizedTitle, string localizedText)
        {
            _newsId = newsId;
            _title = title;
            _text = text;
            _imageURL = imageURL;
            _thumbnailURL = thumbnailURL;
            _user = user;
            _createdDate = createdDate;
            _localizedTitle = localizedTitle;
            _localizedText = localizedText;
        }
    }
}